package o;

import android.content.Context;

public class cpe {
    public static boolean ˋ(Context context, String str) {
        try {
            int checkPermission = context.getPackageManager().checkPermission(str, context.getPackageName());
            if (checkPermission == 0) {
                return true;
            }
            cnu.ˏ.ˊ("PermissionUtils", "no this permission, result = " + checkPermission);
            return false;
        } catch (Exception e) {
            cnu.ˏ.ˋ("PermissionUtils", e.toString());
            return false;
        }
    }
}
